/*
 * PhoneDict: A J2ME Dict client
 * 
 * Copyright (C) 2006 Labeneator labeneator@gmail.org
 *
 * This file is a part of PhoneDict. PhoneDict is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the Free 
 * Software Foundation; either version 2 of the License, or (at your option) any later version.
 * Mobber is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License 
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class PhoneDict extends MIDlet
{
	public static final String tickermsg = " PhoneDict  Copyright (c) PenguinLabs Ltd - http://www.penguinlabs.co.ke ";
	public static Display display;
	public static Query query;
	public static Defn defn;
	public static SrvInfo srvinfo;
	public static Show show;
	public static Databases databases;
	public static Logging logger;
	public static SrvStatus srvstatus;
	public static Help srvhelp;
	public static DBQuery dbquery;
	public static Strategies strategies;
	public static Match match;
	public PhoneDict()
	{
		cop=this;
		query = new Query();
		show = new Show();
		logger = new Logging();
	}
	
	public void startApp() throws MIDletStateChangeException
	{
		display=Display.getDisplay(this);
		display.setCurrent(query);
	}
	
	private static PhoneDict cop;
	public static void kill()
	{
		cop.destroyApp(true);
		cop.notifyDestroyed();
    }
	public void pauseApp()
	{
	}
	public void destroyApp(boolean unconditional)
	{
		query = null;
	}
	
};
